package demo4;


import java.util.ArrayList;
import java.util.List;

public class Test {
    public static void main(String[] args) {
        List<Poker> pokers = new ArrayList<>();
        Game game = new Game();

        //获得一副牌
        pokers = game.buyPoker();
        System.out.println("新的一副牌为:");
        System.out.println(pokers);

        //打乱牌
        game.washPoker(pokers);
        System.out.println("打乱的牌为: ");
        System.out.println(pokers);

        //揭牌
        List<List<Poker>> hand = game.game(pokers);
        for (int i = 0; i < hand.size(); i++) {
            System.out.println("第"+(i+1)+"个人的牌: " +hand.get(i));
        }

        //剩下的牌
        System.out.println("剩下的牌: ");
        System.out.println(pokers);
    }
}
